cody - HTMLify profile
files of /cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/
Largest Odd Number in String.cpp
/cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Largest Odd Number in String.cpp
class Solution {
public:
string largestOddNumber(string num) {
int n = num.length();
string ans = "";
public:
string largestOddNumber(string num) {
int n = num.length();
string ans = "";
Longest Common Prefix.cpp
/cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Longest Common Prefix.cpp
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
stri
using namespace std;
class Solution {
public:
string longestCommonPrefix(vector<string>& strs) {
stri
Maximum Nesting Depth Of The Parentheses.cpp
/cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Maximum Nesting Depth Of The Parentheses.cpp
int maxDepth(string s) {
// Write your code here.
int n = s.length();
int count;
int close;
int maxi = 0;
for(int i
// Write your code here.
int n = s.length();
int count;
int close;
int maxi = 0;
for(int i
Remove Outermost Parentheses.cpp
/cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Remove Outermost Parentheses.cpp
#include<bits/stdc++.h>
using namespace std;
class Solution {
public:
string removeOuterParentheses(string s) {
int
using namespace std;
class Solution {
public:
string removeOuterParentheses(string s) {
int
Reverse Words in a String.cpp
/cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Reverse Words in a String.cpp
class Solution {
public:
string reverseWords(string s) {
int n = s.length();
string ans = "";
int i
public:
string reverseWords(string s) {
int n = s.length();
string ans = "";
int i
Rotate String Or Check If One String Is A Rotation Of Another String
/cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Rotate String Or Check If One String Is A Rotation Of Another String
class Solution {
public:
bool rotateString(string s, string goal) {
int l1 = s.length();
int l2 = goal.lengt
public:
bool rotateString(string s, string goal) {
int l1 = s.length();
int l2 = goal.lengt
Valid Anagram.cpp(sorting Approch)
/cody/pratham0709/Striver-A-TO-Z-SDE-SHEET/Strings/Basic and Easy String Problems/Valid Anagram.cpp(sorting Approch)
#include<bits/stdc++.h>
using namespace std;
bool isAnagram(string str1, string str2)
{
//Write your code here
// vecto
using namespace std;
bool isAnagram(string str1, string str2)
{
//Write your code here
// vecto